﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="GestionUsuarios.aspx.cs" Inherits="Mantenimiento.Interfaz.GestionUsuarios" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <div>
        <telerik:RadGrid ID="rgUsuarios" runat="server" AllowPaging="True" OnNeedDataSource="rgUsuarios_NeedDataSource" 
                AllowSorting="True" CellSpacing="0" GridLines="None" ShowGroupPanel="True" 
                AutoGenerateColumns="False" OnItemCommand="rgUsuarios_ItemCommand" >
            <MasterTableView CommandItemDisplay="Top" PageSize="30">
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
            <CommandItemTemplate>
                <div class="barraherramientas">
                    <asp:LinkButton ID="btnNew" runat="server" CommandName="InitInsert"
                        Text="&nbsp;&nbsp;&nbsp;<b>NUEVO USUARIO</b>" 
                        meta:resourcekey="btnNewResource1"></asp:LinkButton>
                    <%--<asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" 
                        Text="Editar" 
                        Visible='<%# rgVehiculos.EditIndexes.Count == 0 %>'
                        meta:resourcekey="btnEditSelectedResource1"></asp:LinkButton>
                    <asp:LinkButton ID="btnEliminar" runat="server" CommandName="DeleteSelected"
                        Text="Eliminar"  
                        meta:resourcekey="btnEliminarResource1" ></asp:LinkButton>
                        <!--JUR: rotulo en javascript-->
                    <asp:LinkButton ID="btnRefrescar" runat="server" CommandName="RebindGrid"
                        Text="Refrescar" 
                        meta:resourcekey="btnRefrescarResource1" ></asp:LinkButton>
                    <asp:LinkButton ID="btnExportExcel" runat="server" CommandName="ExportExcel" 
                        Text="Exportar a Excel" 
                        meta:resourcekey="btnExportExcelResource1"></asp:LinkButton>--%>
                </div>
            </CommandItemTemplate>
            <Columns>
                <telerik:GridBoundColumn DataField="Login" DataType="System.String" 
                    HeaderText="Login" ReadOnly="True" SortExpression="Login" 
                    UniqueName="Login" Visible="True" ItemStyle-HorizontalAlign="Center"
                    HeaderStyle-Width="80px" ItemStyle-Width="100px" 
                    HeaderStyle-HorizontalAlign="Center">
                </telerik:GridBoundColumn> 
                <telerik:GridCheckBoxColumn DataField="BAdministrador" DataType="System.Boolean" 
                    HeaderText="Administrador" ReadOnly="True" SortExpression="BAdministrador" 
                    UniqueName="BAdministrador" Visible="True" ItemStyle-HorizontalAlign="Center"
                    HeaderStyle-Width="100px" ItemStyle-Width="100px" 
                    HeaderStyle-HorizontalAlign="Center">
                </telerik:GridCheckBoxColumn> 
                <telerik:GridEditCommandColumn>
                </telerik:GridEditCommandColumn>
                <telerik:GridButtonColumn CommandName="Delete" Text="Delete"  
      UniqueName= "DeleteColumn" />
            </Columns>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>

            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>

            <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
            </EditFormSettings>
            </MasterTableView>

            <FilterMenu EnableImageSprites="False"></FilterMenu>

            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
            <%--<ClientSettings>
                <Selecting AllowRowSelect="True" />
            </ClientSettings>--%>
        </telerik:RadGrid>
        </div>
    </div>
</asp:Content>
